import { createApp } from 'vue'
//@ts-ignore
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
//@ts-ignore
import zhCn from 'element-plus/dist/locale/zh-cn.mjs'
import 'virtual:svg-icons-register'
import gloablComponent from '@/components'
import router from './router'
//引入仓库
import pinia from './store'
//@ts-ignore
import App from '@/App.vue'

let app = createApp(App)
//@ts-ignore忽略当前文件ts类型的检测否则有红色提示(打包会失败)
app.use(ElementPlus, {
  locale: zhCn,
})
//注册路由
app.use(router)
app.use(pinia)
app.use(gloablComponent)
import '@/styles/index.scss'
app.mount('#app')
